package com.wuyou.test;


import java.io.*;

public class HandleFile {


    public static void main(String[] args) throws Exception {
        File file = new File("C:\\Users\\Administrator\\Downloads\\CHS_c.srt");

        InputStream fis = new FileInputStream(file);

        InputStreamReader isr = new InputStreamReader(fis, "utf-8");

        BufferedReader bf = new BufferedReader(isr);
        String str = null;
        int count = 1;
        while ((str = bf.readLine()) != null) {
            if (str != null && !str.startsWith("0")) {
                if (!String.valueOf(count).equals(str)) {
                    System.out.println(str);
                } else {
                    count++;
                }
            }

        }
    }
}
